Skip to main content

All Questions

0votes
1answer
389views

How to Update Resources for already deployed AWS Resources in Serverless Framework?

Like the title, I want to update or edit some configurations my DynamoDB table which is already deployed to AWS. I am currently managing all resources in one serverelss.yml file. When I change some ...
srhee's user avatar
3votes
1answer
2kviews

How do i query a DynamoDB and get all rows where "col3" exists & not 0/null (boto3)

This is my DynamoDB table via serverless framework, added a secondary column index for "aaa_id": Devices: Type: AWS::DynamoDB::Table Properties: TableName: Devices ...
Imnotapotato's user avatar
0votes
2answers
1kviews

How to use typeDORM with NestJS and AWS Lambda

I'm trying to build a NestJS project and use typeDORM to save and receive items from DynamoDB. Ultimately the app should be deployed as a AWS Lambda. For local testing I am using serverless offline. ...
mkotek's user avatar
0votes
1answer
113views

Using Lambda with Nodejs Count Some queries in Dynamo DB

After using the below to pull data from Dynamo db sucessfully async function pullone(sessionid) { const params = { TableName: dynamodbTableName, Key: { 'sessionid': sessionid } };...
faba's user avatar
0votes
1answer
69views

How to achieve one lambda function instance at once?

I need to update quantity attribute of a row in dynamo using a lambda function, if two request comes at same time, they will get same quantity. After update the updated will not be the expected value. ...
Jahir Uddin's user avatar
0votes
1answer
338views

Lambda authorizer not granting permissions

for a learning project I set up a Lambda authorizer which does a lookup in DynamoDB table $DYNAMODB_TABLE_PROJECTS to determine access permissions to another table $ DYNAMODB_TABLE_TASKS. It ...
felix's user avatar
0votes
1answer
74views

Inconsistent DynamoDB writtings

We have the following code used as lambda Function in Serverless Framework triggered every 2min with cron. The issue we are facing is that the writing in DynamoDB is inconsistent , we want to have 3 ...
Hristijan's user avatar
0votes
1answer
223views

Import DynamoDB Table - YML

I have a serverless yml file for node project with aws. Also I have a dynamodb table in another file. I can deploy the project with no issues, however VSCode is showing a red alert problem in my ...
Ernesto Diaz's user avatar
0votes
1answer
4kviews

Trigger Lambda function based on attribute value in DynamoDB

I have a DynamoDB table whose items have these attributes: id, user, status. Status can take values A or B. Is it possible to trigger a lambda based on only the value of attribute 'status' ? Example,...
Tisha's user avatar
0votes
1answer
564views

502 Bad Gateway Error on Serverless Framework Express Rest-API

I am trying to build a express rest-api with the serverless framework with the following code. I have a working POST request method to the path /fruits but the following GET request method throws a ...
user2805620's user avatar
1vote
1answer
5kviews

How can I use `!GetAtt` in serverless.yml default value operator?

I have serverless.yml which is to deploy a dynamodb and a lambda function. The lambda function needs to reference the dynamodb table stream arn. functions: onStreamHandler: handler: ... name:...
Joey Yi Zhao's user avatar
0votes
1answer
301views

Serverless invoke error: "is not authorized to perform: dynamodb:BatchWriteItem on resource: arn:aws:..."

I have this iamRoleStatements on my serverless.yml, which should allow those actions to my lambda functions: - Effect: Allow Action: - dynamodb:Query - dynamodb:Scan - dynamodb:GetItem ...
TAD's user avatar
  • 15
5votes
2answers
3kviews

What is the meaning of this error "Invalid KeySchema: Some index key attribute have no definition (Service: AmazonDynamoDBv2);

Could you please tell me anything that I've missed at this code. resources: Resources: ScholarshipsTable: Type: AWS::DynamoDB::Table Properties: TableName: ...
ZarNiHein's user avatar
0votes
1answer
533views

Dynamodb-serverless one to many and many to many relationships

I am really new to Dynamodb and NoSQL world. I am practicing AWS' GSI and LSI. I am using serverless framework. I split my handlers multiple lambda function.I want to create my data where I can see ...
Krisna's user avatar
  • 3,463
1vote
1answer
475views

Serverless framework, yaml and AWS lambda/DynamoDB concepts

I recently explored serverless and I would like to create a "kind of simple" backend for my app. It should like CRUD connected to DynamoDB like it is nicely shown here. And then later ...
Lukas Bunat's user avatar

153050per page
close